#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "PWM.h"
#include "Serial.h"//语音播报串口
#include "Moter.h"

#include "LED.h"
#include "UID.h"
#include "Voice_broadcast.h"
#include "usart2.h"//UID读卡串口
#include "OLED.h"


//全局变量定义区
//....................................

//....................................


//本文件使用变量定义区
//....................................
uint16_t speed;//控制电机转速
uint8_t ID_Num_rx[12];//储存读取的ID卡信息

//....................................


int main(void)
{
	//初始化区
	LED_Init();//指示灯
	Moter_Init();//电机
	Voice_USART1_Init();//语音播报模块
	UID_USART2_Init();//初始化UID读卡串口
	OLED_Init();
	
	//控制变量区

	while(1)
	{
		GetRxPacket(ID_Num_rx);
		return_ID_and_Voice(ID_Num_rx);
	}
	
}




